// Lean compiler output
// Module: Std.Time.Zoned
// Imports: public import Std.Time.Zoned.DateTime public import Std.Time.Zoned.ZoneRules public import Std.Time.Zoned.ZonedDateTime public import Std.Time.Zoned.Database
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainTime(lean_object*);
lean_object* l_Std_Time_TimeZone_Transition_findTransitionForTimestamp(lean_object*, lean_object*);
lean_object* l_Std_Time_Duration_ofNanoseconds(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_toTimestampWithZone(lean_object*, lean_object*);
lean_object* l_Std_Time_TimeZone_LocalTimeType_getTimeZone(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_nowAt(lean_object*);
lean_object* l_Std_Time_PlainDate_toDaysSinceUNIXEpoch(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_toTimestampWithZone___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_nowAt___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_toTimestamp(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_toTimestampWithZone(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_now();
LEAN_EXPORT lean_object* l_Std_Time_DateTime_ofPlainDate___lam__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDateWithZone___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now();
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
lean_object* l_Std_Time_Database_defaultGetLocalZoneRules();
LEAN_EXPORT lean_object* l_Std_Time_DateTime_ofPlainDate(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_toTimestampWithZone___boxed(lean_object*, lean_object*);
uint8_t lean_int_dec_le(lean_object*, lean_object*);
static lean_object* l_Std_Time_DateTime_ofPlainDate___closed__0;
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_now___boxed(lean_object*);
lean_object* l_instNatCastInt___lam__0(lean_object*);
static lean_object* l_Std_Time_PlainDateTime_now___closed__0;
lean_object* lean_nat_to_int(lean_object*);
lean_object* l_Std_Time_TimeZone_toSeconds(lean_object*);
extern lean_object* l_Std_Time_PlainTime_midnight;
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_now___boxed(lean_object*);
static lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___closed__0;
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_now();
static lean_object* l_Std_Time_DateTime_ofPlainDate___closed__1;
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate(lean_object*, lean_object*);
lean_object* l_Array_back_x3f___redArg(lean_object*);
lean_object* l_Std_Time_PlainDateTime_toTimestampAssumingUTC(lean_object*);
lean_object* l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now___lam__0___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_thunk_get_own(lean_object*);
static lean_object* l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0;
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainDate___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime(lean_object*, lean_object*);
lean_object* lean_mk_thunk(lean_object*);
lean_object* lean_int_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDateWithZone(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainDate(lean_object*);
lean_object* l_Std_Time_TimeZone_Transition_timezoneAt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_toTimestamp(lean_object*, lean_object*);
lean_object* lean_array_fget(lean_object*, lean_object*);
lean_object* lean_nat_abs(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate___redArg___boxed(lean_object*);
lean_object* lean_int_mul(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_of___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_ofPlainDate___lam__0(lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainTime_now___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_PlainTime_now();
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now___boxed(lean_object*);
uint8_t lean_int_dec_lt(lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now___boxed(lean_object*, lean_object*);
lean_object* lean_int_add(lean_object*, lean_object*);
static lean_object* l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1;
lean_object* lean_get_current_time();
lean_object* l_Std_Time_PlainDate_ofDaysSinceUNIXEpoch(lean_object*);
lean_object* lean_int_ediv(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_Time_ZonedDateTime_ofPlainDate___lam__1(lean_object*, lean_object*);
lean_object* lean_int_neg(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now___lam__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainTime___boxed(lean_object*);
lean_object* l_Std_Time_Database_defaultGetZoneRules(lean_object*);
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_of(lean_object*, lean_object*);
static lean_object* _init_l_Std_Time_PlainDateTime_now___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1000000000u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_now() {
_start:
{
lean_object* x_2; 
x_2 = lean_get_current_time();
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
lean_dec_ref(x_2);
x_4 = l_Std_Time_Database_defaultGetLocalZoneRules();
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
if (lean_is_exclusive(x_4)) {
 lean_ctor_release(x_4, 0);
 x_6 = x_4;
} else {
 lean_dec_ref(x_4);
 x_6 = lean_box(0);
}
x_28 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_28);
x_29 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_29);
lean_dec(x_5);
lean_inc(x_3);
x_30 = l_Std_Time_TimeZone_Transition_findTransitionForTimestamp(x_29, x_3);
lean_dec_ref(x_29);
if (lean_obj_tag(x_30) == 0)
{
x_7 = x_28;
goto block_27;
}
else
{
lean_object* x_31; lean_object* x_32; 
lean_dec_ref(x_28);
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
lean_dec_ref(x_30);
x_32 = lean_ctor_get(x_31, 1);
lean_inc_ref(x_32);
lean_dec(x_31);
x_7 = x_32;
goto block_27;
}
block_27:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_8 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_3);
x_9 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec_ref(x_9);
x_12 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_7);
lean_dec_ref(x_7);
x_13 = l_Std_Time_TimeZone_toSeconds(x_12);
lean_dec_ref(x_12);
x_14 = l_Std_Time_PlainDateTime_now___closed__0;
x_15 = lean_int_mul(x_13, x_14);
lean_dec(x_13);
x_16 = l_Std_Time_Duration_ofNanoseconds(x_15);
lean_dec(x_15);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec_ref(x_16);
x_19 = lean_int_mul(x_10, x_14);
lean_dec(x_10);
x_20 = lean_int_add(x_19, x_11);
lean_dec(x_11);
lean_dec(x_19);
x_21 = lean_int_mul(x_17, x_14);
lean_dec(x_17);
x_22 = lean_int_add(x_21, x_18);
lean_dec(x_18);
lean_dec(x_21);
x_23 = lean_int_add(x_20, x_22);
lean_dec(x_22);
lean_dec(x_20);
x_24 = l_Std_Time_Duration_ofNanoseconds(x_23);
lean_dec(x_23);
x_25 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_24);
if (lean_is_scalar(x_6)) {
 x_26 = lean_alloc_ctor(0, 1, 0);
} else {
 x_26 = x_6;
}
lean_ctor_set(x_26, 0, x_25);
return x_26;
}
}
else
{
uint8_t x_33; 
lean_dec(x_3);
x_33 = !lean_is_exclusive(x_4);
if (x_33 == 0)
{
return x_4;
}
else
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_4, 0);
lean_inc(x_34);
lean_dec(x_4);
x_35 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
}
}
else
{
uint8_t x_36; 
x_36 = !lean_is_exclusive(x_2);
if (x_36 == 0)
{
return x_2;
}
else
{
lean_object* x_37; lean_object* x_38; 
x_37 = lean_ctor_get(x_2, 0);
lean_inc(x_37);
lean_dec(x_2);
x_38 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_38, 0, x_37);
return x_38;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_now___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_PlainDateTime_now();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_now() {
_start:
{
lean_object* x_2; 
x_2 = lean_get_current_time();
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
lean_dec_ref(x_2);
x_4 = l_Std_Time_Database_defaultGetLocalZoneRules();
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
if (lean_is_exclusive(x_4)) {
 lean_ctor_release(x_4, 0);
 x_6 = x_4;
} else {
 lean_dec_ref(x_4);
 x_6 = lean_box(0);
}
x_29 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_29);
x_30 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_30);
lean_dec(x_5);
lean_inc(x_3);
x_31 = l_Std_Time_TimeZone_Transition_findTransitionForTimestamp(x_30, x_3);
lean_dec_ref(x_30);
if (lean_obj_tag(x_31) == 0)
{
x_7 = x_29;
goto block_28;
}
else
{
lean_object* x_32; lean_object* x_33; 
lean_dec_ref(x_29);
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
lean_dec_ref(x_31);
x_33 = lean_ctor_get(x_32, 1);
lean_inc_ref(x_33);
lean_dec(x_32);
x_7 = x_33;
goto block_28;
}
block_28:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_8 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_3);
x_9 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec_ref(x_9);
x_12 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_7);
lean_dec_ref(x_7);
x_13 = l_Std_Time_TimeZone_toSeconds(x_12);
lean_dec_ref(x_12);
x_14 = l_Std_Time_PlainDateTime_now___closed__0;
x_15 = lean_int_mul(x_13, x_14);
lean_dec(x_13);
x_16 = l_Std_Time_Duration_ofNanoseconds(x_15);
lean_dec(x_15);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec_ref(x_16);
x_19 = lean_int_mul(x_10, x_14);
lean_dec(x_10);
x_20 = lean_int_add(x_19, x_11);
lean_dec(x_11);
lean_dec(x_19);
x_21 = lean_int_mul(x_17, x_14);
lean_dec(x_17);
x_22 = lean_int_add(x_21, x_18);
lean_dec(x_18);
lean_dec(x_21);
x_23 = lean_int_add(x_20, x_22);
lean_dec(x_22);
lean_dec(x_20);
x_24 = l_Std_Time_Duration_ofNanoseconds(x_23);
lean_dec(x_23);
x_25 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_24);
x_26 = lean_ctor_get(x_25, 0);
lean_inc_ref(x_26);
lean_dec_ref(x_25);
if (lean_is_scalar(x_6)) {
 x_27 = lean_alloc_ctor(0, 1, 0);
} else {
 x_27 = x_6;
}
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
else
{
uint8_t x_34; 
lean_dec(x_3);
x_34 = !lean_is_exclusive(x_4);
if (x_34 == 0)
{
return x_4;
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_4, 0);
lean_inc(x_35);
lean_dec(x_4);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
return x_36;
}
}
}
else
{
uint8_t x_37; 
x_37 = !lean_is_exclusive(x_2);
if (x_37 == 0)
{
return x_2;
}
else
{
lean_object* x_38; lean_object* x_39; 
x_38 = lean_ctor_get(x_2, 0);
lean_inc(x_38);
lean_dec(x_2);
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_now___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_PlainDate_now();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainTime_now() {
_start:
{
lean_object* x_2; 
x_2 = lean_get_current_time();
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
lean_dec_ref(x_2);
x_4 = l_Std_Time_Database_defaultGetLocalZoneRules();
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
if (lean_is_exclusive(x_4)) {
 lean_ctor_release(x_4, 0);
 x_6 = x_4;
} else {
 lean_dec_ref(x_4);
 x_6 = lean_box(0);
}
x_29 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_29);
x_30 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_30);
lean_dec(x_5);
lean_inc(x_3);
x_31 = l_Std_Time_TimeZone_Transition_findTransitionForTimestamp(x_30, x_3);
lean_dec_ref(x_30);
if (lean_obj_tag(x_31) == 0)
{
x_7 = x_29;
goto block_28;
}
else
{
lean_object* x_32; lean_object* x_33; 
lean_dec_ref(x_29);
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
lean_dec_ref(x_31);
x_33 = lean_ctor_get(x_32, 1);
lean_inc_ref(x_33);
lean_dec(x_32);
x_7 = x_33;
goto block_28;
}
block_28:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_8 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_3);
x_9 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec_ref(x_9);
x_12 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_7);
lean_dec_ref(x_7);
x_13 = l_Std_Time_TimeZone_toSeconds(x_12);
lean_dec_ref(x_12);
x_14 = l_Std_Time_PlainDateTime_now___closed__0;
x_15 = lean_int_mul(x_13, x_14);
lean_dec(x_13);
x_16 = l_Std_Time_Duration_ofNanoseconds(x_15);
lean_dec(x_15);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec_ref(x_16);
x_19 = lean_int_mul(x_10, x_14);
lean_dec(x_10);
x_20 = lean_int_add(x_19, x_11);
lean_dec(x_11);
lean_dec(x_19);
x_21 = lean_int_mul(x_17, x_14);
lean_dec(x_17);
x_22 = lean_int_add(x_21, x_18);
lean_dec(x_18);
lean_dec(x_21);
x_23 = lean_int_add(x_20, x_22);
lean_dec(x_22);
lean_dec(x_20);
x_24 = l_Std_Time_Duration_ofNanoseconds(x_23);
lean_dec(x_23);
x_25 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_24);
x_26 = lean_ctor_get(x_25, 1);
lean_inc_ref(x_26);
lean_dec_ref(x_25);
if (lean_is_scalar(x_6)) {
 x_27 = lean_alloc_ctor(0, 1, 0);
} else {
 x_27 = x_6;
}
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
else
{
uint8_t x_34; 
lean_dec(x_3);
x_34 = !lean_is_exclusive(x_4);
if (x_34 == 0)
{
return x_4;
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_4, 0);
lean_inc(x_35);
lean_dec(x_4);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
return x_36;
}
}
}
else
{
uint8_t x_37; 
x_37 = !lean_is_exclusive(x_2);
if (x_37 == 0)
{
return x_2;
}
else
{
lean_object* x_38; lean_object* x_39; 
x_38 = lean_ctor_get(x_2, 0);
lean_inc(x_38);
lean_dec(x_2);
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainTime_now___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_PlainTime_now();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_ofPlainDate___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_4 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_1);
x_5 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = l_Std_Time_TimeZone_toSeconds(x_2);
x_9 = l_Std_Time_PlainDateTime_now___closed__0;
x_10 = lean_int_mul(x_8, x_9);
lean_dec(x_8);
x_11 = l_Std_Time_Duration_ofNanoseconds(x_10);
lean_dec(x_10);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec_ref(x_11);
x_14 = lean_int_mul(x_6, x_9);
lean_dec(x_6);
x_15 = lean_int_add(x_14, x_7);
lean_dec(x_7);
lean_dec(x_14);
x_16 = lean_int_mul(x_12, x_9);
lean_dec(x_12);
x_17 = lean_int_add(x_16, x_13);
lean_dec(x_13);
lean_dec(x_16);
x_18 = lean_int_add(x_15, x_17);
lean_dec(x_17);
lean_dec(x_15);
x_19 = l_Std_Time_Duration_ofNanoseconds(x_18);
lean_dec(x_18);
x_20 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_19);
return x_20;
}
}
static lean_object* _init_l_Std_Time_DateTime_ofPlainDate___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(86400u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Time_DateTime_ofPlainDate___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_ofPlainDate___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_Time_DateTime_ofPlainDate___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_ofPlainDate(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_3 = l_Std_Time_PlainDate_toDaysSinceUNIXEpoch(x_1);
x_4 = l_Std_Time_DateTime_ofPlainDate___closed__0;
x_5 = lean_int_mul(x_3, x_4);
lean_dec(x_3);
x_6 = l_Std_Time_DateTime_ofPlainDate___closed__1;
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
lean_inc_ref(x_7);
x_8 = lean_alloc_closure((void*)(l_Std_Time_DateTime_ofPlainDate___lam__0___boxed), 3, 2);
lean_closure_set(x_8, 0, x_7);
lean_closure_set(x_8, 1, x_2);
x_9 = lean_mk_thunk(x_8);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_3, 0);
x_5 = l_Std_Time_DateTime_ofPlainDate___closed__0;
x_6 = lean_int_ediv(x_4, x_5);
x_7 = l_Std_Time_PlainDate_ofDaysSinceUNIXEpoch(x_6);
lean_dec(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_2, 0);
x_4 = l_Std_Time_DateTime_ofPlainDate___closed__0;
x_5 = lean_int_ediv(x_3, x_4);
x_6 = l_Std_Time_PlainDate_ofDaysSinceUNIXEpoch(x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Time_DateTime_toPlainDate(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainDate___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_DateTime_toPlainDate___redArg(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_thunk_get_own(x_3);
x_5 = lean_ctor_get(x_4, 1);
lean_inc_ref(x_5);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = lean_thunk_get_own(x_2);
x_4 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_4);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Time_DateTime_toPlainTime(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_toPlainTime___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_DateTime_toPlainTime___redArg(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_4 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_1);
x_5 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = l_Std_Time_TimeZone_toSeconds(x_2);
x_9 = l_Std_Time_PlainDateTime_now___closed__0;
x_10 = lean_int_mul(x_8, x_9);
lean_dec(x_8);
x_11 = l_Std_Time_Duration_ofNanoseconds(x_10);
lean_dec(x_10);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec_ref(x_11);
x_14 = lean_int_mul(x_6, x_9);
lean_dec(x_6);
x_15 = lean_int_add(x_14, x_7);
lean_dec(x_7);
lean_dec(x_14);
x_16 = lean_int_mul(x_12, x_9);
lean_dec(x_12);
x_17 = lean_int_add(x_16, x_13);
lean_dec(x_13);
lean_dec(x_16);
x_18 = lean_int_add(x_15, x_17);
lean_dec(x_17);
lean_dec(x_15);
x_19 = l_Std_Time_Duration_ofNanoseconds(x_18);
lean_dec(x_18);
x_20 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_19);
return x_20;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_Time_DateTime_now___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now(lean_object* x_1) {
_start:
{
lean_object* x_3; 
x_3 = lean_get_current_time();
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
x_6 = lean_alloc_closure((void*)(l_Std_Time_DateTime_now___lam__0___boxed), 3, 2);
lean_closure_set(x_6, 0, x_5);
lean_closure_set(x_6, 1, x_1);
x_7 = lean_mk_thunk(x_6);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_5);
lean_ctor_set(x_8, 1, x_7);
lean_ctor_set(x_3, 0, x_8);
return x_3;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = lean_ctor_get(x_3, 0);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_9);
x_10 = lean_alloc_closure((void*)(l_Std_Time_DateTime_now___lam__0___boxed), 3, 2);
lean_closure_set(x_10, 0, x_9);
lean_closure_set(x_10, 1, x_1);
x_11 = lean_mk_thunk(x_10);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_9);
lean_ctor_set(x_12, 1, x_11);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
else
{
uint8_t x_14; 
lean_dec_ref(x_1);
x_14 = !lean_is_exclusive(x_3);
if (x_14 == 0)
{
return x_3;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec(x_3);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_DateTime_now___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Time_DateTime_now(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_4 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_1);
x_5 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = l_Std_Time_TimeZone_toSeconds(x_2);
x_9 = l_Std_Time_PlainDateTime_now___closed__0;
x_10 = lean_int_mul(x_8, x_9);
lean_dec(x_8);
x_11 = l_Std_Time_Duration_ofNanoseconds(x_10);
lean_dec(x_10);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec_ref(x_11);
x_14 = lean_int_mul(x_6, x_9);
lean_dec(x_6);
x_15 = lean_int_add(x_14, x_7);
lean_dec(x_7);
lean_dec(x_14);
x_16 = lean_int_mul(x_12, x_9);
lean_dec(x_12);
x_17 = lean_int_add(x_16, x_13);
lean_dec(x_13);
lean_dec(x_16);
x_18 = lean_int_add(x_15, x_17);
lean_dec(x_17);
lean_dec(x_15);
x_19 = l_Std_Time_Duration_ofNanoseconds(x_18);
lean_dec(x_18);
x_20 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_19);
return x_20;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_Time_ZonedDateTime_now___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now() {
_start:
{
lean_object* x_2; 
x_2 = lean_get_current_time();
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
lean_dec_ref(x_2);
x_4 = l_Std_Time_Database_defaultGetLocalZoneRules();
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
if (lean_is_exclusive(x_4)) {
 lean_ctor_release(x_4, 0);
 x_6 = x_4;
} else {
 lean_dec_ref(x_4);
 x_6 = lean_box(0);
}
x_13 = lean_ctor_get(x_5, 0);
x_14 = lean_ctor_get(x_5, 1);
lean_inc(x_3);
x_15 = l_Std_Time_TimeZone_Transition_timezoneAt(x_14, x_3);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; 
lean_dec_ref(x_15);
x_16 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_13);
x_7 = x_16;
goto block_12;
}
else
{
lean_object* x_17; 
x_17 = lean_ctor_get(x_15, 0);
lean_inc(x_17);
lean_dec_ref(x_15);
x_7 = x_17;
goto block_12;
}
block_12:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
lean_inc_ref(x_7);
lean_inc(x_3);
x_8 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_now___lam__0___boxed), 3, 2);
lean_closure_set(x_8, 0, x_3);
lean_closure_set(x_8, 1, x_7);
x_9 = lean_mk_thunk(x_8);
x_10 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_3);
lean_ctor_set(x_10, 2, x_5);
lean_ctor_set(x_10, 3, x_7);
if (lean_is_scalar(x_6)) {
 x_11 = lean_alloc_ctor(0, 1, 0);
} else {
 x_11 = x_6;
}
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
uint8_t x_18; 
lean_dec(x_3);
x_18 = !lean_is_exclusive(x_4);
if (x_18 == 0)
{
return x_4;
}
else
{
lean_object* x_19; lean_object* x_20; 
x_19 = lean_ctor_get(x_4, 0);
lean_inc(x_19);
lean_dec(x_4);
x_20 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_20, 0, x_19);
return x_20;
}
}
}
else
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_2);
if (x_21 == 0)
{
return x_2;
}
else
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_2, 0);
lean_inc(x_22);
lean_dec(x_2);
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_now___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_ZonedDateTime_now();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_nowAt(lean_object* x_1) {
_start:
{
lean_object* x_3; 
x_3 = lean_get_current_time();
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
lean_dec_ref(x_3);
x_5 = l_Std_Time_Database_defaultGetZoneRules(x_1);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
if (lean_is_exclusive(x_5)) {
 lean_ctor_release(x_5, 0);
 x_7 = x_5;
} else {
 lean_dec_ref(x_5);
 x_7 = lean_box(0);
}
x_14 = lean_ctor_get(x_6, 0);
x_15 = lean_ctor_get(x_6, 1);
lean_inc(x_4);
x_16 = l_Std_Time_TimeZone_Transition_timezoneAt(x_15, x_4);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; 
lean_dec_ref(x_16);
x_17 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_14);
x_8 = x_17;
goto block_13;
}
else
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_16, 0);
lean_inc(x_18);
lean_dec_ref(x_16);
x_8 = x_18;
goto block_13;
}
block_13:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
lean_inc_ref(x_8);
lean_inc(x_4);
x_9 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_now___lam__0___boxed), 3, 2);
lean_closure_set(x_9, 0, x_4);
lean_closure_set(x_9, 1, x_8);
x_10 = lean_mk_thunk(x_9);
x_11 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_4);
lean_ctor_set(x_11, 2, x_6);
lean_ctor_set(x_11, 3, x_8);
if (lean_is_scalar(x_7)) {
 x_12 = lean_alloc_ctor(0, 1, 0);
} else {
 x_12 = x_7;
}
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
else
{
uint8_t x_19; 
lean_dec(x_4);
x_19 = !lean_is_exclusive(x_5);
if (x_19 == 0)
{
return x_5;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_5, 0);
lean_inc(x_20);
lean_dec(x_5);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
else
{
uint8_t x_22; 
lean_dec_ref(x_1);
x_22 = !lean_is_exclusive(x_3);
if (x_22 == 0)
{
return x_3;
}
else
{
lean_object* x_23; lean_object* x_24; 
x_23 = lean_ctor_get(x_3, 0);
lean_inc(x_23);
lean_dec(x_3);
x_24 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_24, 0, x_23);
return x_24;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_nowAt___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Time_ZonedDateTime_nowAt(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_5 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_1);
x_6 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec_ref(x_6);
x_9 = lean_int_mul(x_2, x_3);
x_10 = l_Std_Time_Duration_ofNanoseconds(x_9);
lean_dec(x_9);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec_ref(x_10);
x_13 = lean_int_mul(x_7, x_3);
lean_dec(x_7);
x_14 = lean_int_add(x_13, x_8);
lean_dec(x_8);
lean_dec(x_13);
x_15 = lean_int_mul(x_11, x_3);
lean_dec(x_11);
x_16 = lean_int_add(x_15, x_12);
lean_dec(x_12);
lean_dec(x_15);
x_17 = lean_int_add(x_14, x_16);
lean_dec(x_16);
lean_dec(x_14);
x_18 = l_Std_Time_Duration_ofNanoseconds(x_17);
lean_dec(x_17);
x_19 = l_Std_Time_PlainDateTime_ofTimestampAssumingUTC(x_18);
return x_19;
}
}
LEAN_EXPORT uint8_t l_Std_Time_ZonedDateTime_ofPlainDate___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; uint8_t x_4; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_int_dec_le(x_1, x_3);
return x_4;
}
}
static lean_object* _init_l_Std_Time_ZonedDateTime_ofPlainDate___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Std_Time_PlainTime_midnight;
return x_1;
}
}
static lean_object* _init_l_Std_Time_ZonedDateTime_ofPlainDate___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Time_DateTime_ofPlainDate___closed__1;
x_2 = lean_int_neg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Time_ZonedDateTime_ofPlainDate___lam__0(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Std_Time_ZonedDateTime_ofPlainDate___lam__1(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDate(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_24; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_3 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__0;
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
x_5 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_4);
x_27 = lean_ctor_get(x_5, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_2, 0);
x_29 = lean_ctor_get(x_2, 1);
lean_inc(x_27);
x_30 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed), 2, 1);
lean_closure_set(x_30, 0, x_27);
x_31 = lean_unsigned_to_nat(0u);
x_32 = l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_box(0), x_30, x_29, x_31);
if (lean_obj_tag(x_32) == 1)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; 
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
lean_dec_ref(x_32);
x_34 = lean_array_fget_borrowed(x_29, x_33);
x_35 = lean_ctor_get(x_34, 0);
x_36 = lean_unsigned_to_nat(1u);
x_37 = lean_nat_sub(x_33, x_36);
lean_dec(x_33);
x_38 = lean_array_fget_borrowed(x_29, x_37);
lean_dec(x_37);
x_39 = lean_ctor_get(x_38, 1);
x_40 = lean_ctor_get(x_39, 0);
x_41 = lean_nat_abs(x_40);
x_42 = l_instNatCastInt___lam__0(x_41);
x_43 = lean_int_sub(x_35, x_42);
lean_dec(x_42);
x_44 = lean_int_dec_lt(x_27, x_43);
lean_dec(x_43);
lean_dec(x_27);
if (x_44 == 0)
{
lean_inc(x_34);
x_24 = x_34;
goto block_26;
}
else
{
lean_inc(x_38);
x_24 = x_38;
goto block_26;
}
}
else
{
lean_object* x_45; 
lean_dec(x_32);
lean_dec(x_27);
x_45 = l_Array_back_x3f___redArg(x_29);
if (lean_obj_tag(x_45) == 0)
{
lean_inc_ref(x_28);
x_6 = x_28;
goto block_23;
}
else
{
lean_object* x_46; 
x_46 = lean_ctor_get(x_45, 0);
lean_inc(x_46);
lean_dec_ref(x_45);
x_24 = x_46;
goto block_26;
}
}
block_23:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
lean_dec_ref(x_5);
x_9 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_6);
lean_dec_ref(x_6);
x_10 = l_Std_Time_TimeZone_toSeconds(x_9);
x_11 = lean_int_neg(x_10);
x_12 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
x_13 = l_Std_Time_PlainDateTime_now___closed__0;
x_14 = lean_int_mul(x_7, x_13);
lean_dec(x_7);
x_15 = lean_int_add(x_14, x_8);
lean_dec(x_8);
lean_dec(x_14);
x_16 = lean_int_mul(x_11, x_13);
lean_dec(x_11);
x_17 = lean_int_add(x_16, x_12);
lean_dec(x_16);
x_18 = lean_int_add(x_15, x_17);
lean_dec(x_17);
lean_dec(x_15);
x_19 = l_Std_Time_Duration_ofNanoseconds(x_18);
lean_dec(x_18);
lean_inc_ref(x_19);
x_20 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__0___boxed), 4, 3);
lean_closure_set(x_20, 0, x_19);
lean_closure_set(x_20, 1, x_10);
lean_closure_set(x_20, 2, x_13);
x_21 = lean_mk_thunk(x_20);
x_22 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_19);
lean_ctor_set(x_22, 2, x_2);
lean_ctor_set(x_22, 3, x_9);
return x_22;
}
block_26:
{
lean_object* x_25; 
x_25 = lean_ctor_get(x_24, 1);
lean_inc_ref(x_25);
lean_dec_ref(x_24);
x_6 = x_25;
goto block_23;
}
}
}
static lean_object* _init_l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0;
x_2 = l_Array_back_x3f___redArg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDateWithZone(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_35; lean_object* x_38; lean_object* x_39; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = lean_ctor_get(x_2, 2);
x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*3);
x_7 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__0;
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = 0;
x_12 = 1;
lean_inc_ref(x_4);
lean_inc_ref(x_5);
lean_inc(x_3);
x_13 = lean_alloc_ctor(0, 3, 3);
lean_ctor_set(x_13, 0, x_3);
lean_ctor_set(x_13, 1, x_5);
lean_ctor_set(x_13, 2, x_4);
lean_ctor_set_uint8(x_13, sizeof(void*)*3, x_6);
lean_ctor_set_uint8(x_13, sizeof(void*)*3 + 1, x_11);
lean_ctor_set_uint8(x_13, sizeof(void*)*3 + 2, x_12);
x_14 = lean_unsigned_to_nat(0u);
x_15 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0;
lean_inc_ref(x_13);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_13);
lean_ctor_set(x_16, 1, x_15);
lean_inc(x_10);
x_38 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed), 2, 1);
lean_closure_set(x_38, 0, x_10);
x_39 = l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_box(0), x_38, x_15, x_14);
if (lean_obj_tag(x_39) == 1)
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; 
lean_dec_ref(x_13);
x_40 = lean_ctor_get(x_39, 0);
lean_inc(x_40);
lean_dec_ref(x_39);
x_41 = lean_array_fget(x_15, x_40);
x_42 = lean_ctor_get(x_41, 0);
x_43 = lean_unsigned_to_nat(1u);
x_44 = lean_nat_sub(x_40, x_43);
lean_dec(x_40);
x_45 = lean_array_fget(x_15, x_44);
lean_dec(x_44);
x_46 = lean_ctor_get(x_45, 1);
x_47 = lean_ctor_get(x_46, 0);
x_48 = lean_nat_abs(x_47);
x_49 = l_instNatCastInt___lam__0(x_48);
x_50 = lean_int_sub(x_42, x_49);
lean_dec(x_49);
x_51 = lean_int_dec_lt(x_10, x_50);
lean_dec(x_50);
lean_dec(x_10);
if (x_51 == 0)
{
lean_dec(x_45);
x_35 = x_41;
goto block_37;
}
else
{
lean_dec(x_41);
x_35 = x_45;
goto block_37;
}
}
else
{
lean_object* x_52; 
lean_dec(x_39);
lean_dec(x_10);
x_52 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1;
if (lean_obj_tag(x_52) == 0)
{
x_17 = x_13;
goto block_34;
}
else
{
lean_object* x_53; 
lean_dec_ref(x_13);
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
x_35 = x_53;
goto block_37;
}
}
block_34:
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_18 = lean_ctor_get(x_9, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_9, 1);
lean_inc(x_19);
lean_dec_ref(x_9);
x_20 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_17);
lean_dec_ref(x_17);
x_21 = l_Std_Time_TimeZone_toSeconds(x_20);
x_22 = lean_int_neg(x_21);
x_23 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
x_24 = l_Std_Time_PlainDateTime_now___closed__0;
x_25 = lean_int_mul(x_18, x_24);
lean_dec(x_18);
x_26 = lean_int_add(x_25, x_19);
lean_dec(x_19);
lean_dec(x_25);
x_27 = lean_int_mul(x_22, x_24);
lean_dec(x_22);
x_28 = lean_int_add(x_27, x_23);
lean_dec(x_27);
x_29 = lean_int_add(x_26, x_28);
lean_dec(x_28);
lean_dec(x_26);
x_30 = l_Std_Time_Duration_ofNanoseconds(x_29);
lean_dec(x_29);
lean_inc_ref(x_30);
x_31 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__0___boxed), 4, 3);
lean_closure_set(x_31, 0, x_30);
lean_closure_set(x_31, 1, x_21);
lean_closure_set(x_31, 2, x_24);
x_32 = lean_mk_thunk(x_31);
x_33 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_33, 0, x_32);
lean_ctor_set(x_33, 1, x_30);
lean_ctor_set(x_33, 2, x_16);
lean_ctor_set(x_33, 3, x_20);
return x_33;
}
block_37:
{
lean_object* x_36; 
x_36 = lean_ctor_get(x_35, 1);
lean_inc_ref(x_36);
lean_dec_ref(x_35);
x_17 = x_36;
goto block_34;
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_ofPlainDateWithZone___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainDate(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_thunk_get_own(x_2);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainDate___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_ZonedDateTime_toPlainDate(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainTime(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_thunk_get_own(x_2);
x_4 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_4);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_toPlainTime___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Time_ZonedDateTime_toPlainTime(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_of(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_Time_Database_defaultGetZoneRules(x_2);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_27; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
if (lean_is_exclusive(x_4)) {
 lean_ctor_release(x_4, 0);
 x_6 = x_4;
} else {
 lean_dec_ref(x_4);
 x_6 = lean_box(0);
}
x_7 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_1);
x_30 = lean_ctor_get(x_7, 0);
lean_inc(x_30);
x_31 = lean_ctor_get(x_5, 0);
x_32 = lean_ctor_get(x_5, 1);
lean_inc(x_30);
x_33 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed), 2, 1);
lean_closure_set(x_33, 0, x_30);
x_34 = lean_unsigned_to_nat(0u);
x_35 = l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_box(0), x_33, x_32, x_34);
if (lean_obj_tag(x_35) == 1)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; 
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
lean_dec_ref(x_35);
x_37 = lean_array_fget_borrowed(x_32, x_36);
x_38 = lean_ctor_get(x_37, 0);
x_39 = lean_unsigned_to_nat(1u);
x_40 = lean_nat_sub(x_36, x_39);
lean_dec(x_36);
x_41 = lean_array_fget_borrowed(x_32, x_40);
lean_dec(x_40);
x_42 = lean_ctor_get(x_41, 1);
x_43 = lean_ctor_get(x_42, 0);
x_44 = lean_nat_abs(x_43);
x_45 = l_instNatCastInt___lam__0(x_44);
x_46 = lean_int_sub(x_38, x_45);
lean_dec(x_45);
x_47 = lean_int_dec_lt(x_30, x_46);
lean_dec(x_46);
lean_dec(x_30);
if (x_47 == 0)
{
lean_inc(x_37);
x_27 = x_37;
goto block_29;
}
else
{
lean_inc(x_41);
x_27 = x_41;
goto block_29;
}
}
else
{
lean_object* x_48; 
lean_dec(x_35);
lean_dec(x_30);
x_48 = l_Array_back_x3f___redArg(x_32);
if (lean_obj_tag(x_48) == 0)
{
lean_inc_ref(x_31);
x_8 = x_31;
goto block_26;
}
else
{
lean_object* x_49; 
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
lean_dec_ref(x_48);
x_27 = x_49;
goto block_29;
}
}
block_26:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_9 = lean_ctor_get(x_7, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_7, 1);
lean_inc(x_10);
lean_dec_ref(x_7);
x_11 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_8);
lean_dec_ref(x_8);
x_12 = l_Std_Time_TimeZone_toSeconds(x_11);
x_13 = lean_int_neg(x_12);
x_14 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
x_15 = l_Std_Time_PlainDateTime_now___closed__0;
x_16 = lean_int_mul(x_9, x_15);
lean_dec(x_9);
x_17 = lean_int_add(x_16, x_10);
lean_dec(x_10);
lean_dec(x_16);
x_18 = lean_int_mul(x_13, x_15);
lean_dec(x_13);
x_19 = lean_int_add(x_18, x_14);
lean_dec(x_18);
x_20 = lean_int_add(x_17, x_19);
lean_dec(x_19);
lean_dec(x_17);
x_21 = l_Std_Time_Duration_ofNanoseconds(x_20);
lean_dec(x_20);
lean_inc_ref(x_21);
x_22 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__0___boxed), 4, 3);
lean_closure_set(x_22, 0, x_21);
lean_closure_set(x_22, 1, x_12);
lean_closure_set(x_22, 2, x_15);
x_23 = lean_mk_thunk(x_22);
x_24 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_21);
lean_ctor_set(x_24, 2, x_5);
lean_ctor_set(x_24, 3, x_11);
if (lean_is_scalar(x_6)) {
 x_25 = lean_alloc_ctor(0, 1, 0);
} else {
 x_25 = x_6;
}
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
block_29:
{
lean_object* x_28; 
x_28 = lean_ctor_get(x_27, 1);
lean_inc_ref(x_28);
lean_dec_ref(x_27);
x_8 = x_28;
goto block_26;
}
}
else
{
uint8_t x_50; 
lean_dec_ref(x_1);
x_50 = !lean_is_exclusive(x_4);
if (x_50 == 0)
{
return x_4;
}
else
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_4, 0);
lean_inc(x_51);
lean_dec(x_4);
x_52 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_52, 0, x_51);
return x_52;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_ZonedDateTime_of___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_Time_ZonedDateTime_of(x_1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_toTimestamp(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_19; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_3 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_1);
x_22 = lean_ctor_get(x_3, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_23);
x_24 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_24);
lean_dec_ref(x_2);
lean_inc(x_22);
x_25 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed), 2, 1);
lean_closure_set(x_25, 0, x_22);
x_26 = lean_unsigned_to_nat(0u);
x_27 = l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_box(0), x_25, x_24, x_26);
if (lean_obj_tag(x_27) == 1)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; 
lean_dec_ref(x_23);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec_ref(x_27);
x_29 = lean_array_fget(x_24, x_28);
x_30 = lean_ctor_get(x_29, 0);
x_31 = lean_unsigned_to_nat(1u);
x_32 = lean_nat_sub(x_28, x_31);
lean_dec(x_28);
x_33 = lean_array_fget(x_24, x_32);
lean_dec(x_32);
lean_dec_ref(x_24);
x_34 = lean_ctor_get(x_33, 1);
x_35 = lean_ctor_get(x_34, 0);
x_36 = lean_nat_abs(x_35);
x_37 = l_instNatCastInt___lam__0(x_36);
x_38 = lean_int_sub(x_30, x_37);
lean_dec(x_37);
x_39 = lean_int_dec_lt(x_22, x_38);
lean_dec(x_38);
lean_dec(x_22);
if (x_39 == 0)
{
lean_dec(x_33);
x_19 = x_29;
goto block_21;
}
else
{
lean_dec(x_29);
x_19 = x_33;
goto block_21;
}
}
else
{
lean_object* x_40; 
lean_dec(x_27);
lean_dec(x_22);
x_40 = l_Array_back_x3f___redArg(x_24);
lean_dec_ref(x_24);
if (lean_obj_tag(x_40) == 0)
{
x_4 = x_23;
goto block_18;
}
else
{
lean_object* x_41; 
lean_dec_ref(x_23);
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
lean_dec_ref(x_40);
x_19 = x_41;
goto block_21;
}
}
block_18:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
lean_dec_ref(x_3);
x_7 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_4);
lean_dec_ref(x_4);
x_8 = l_Std_Time_TimeZone_toSeconds(x_7);
lean_dec_ref(x_7);
x_9 = lean_int_neg(x_8);
lean_dec(x_8);
x_10 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
x_11 = l_Std_Time_PlainDateTime_now___closed__0;
x_12 = lean_int_mul(x_5, x_11);
lean_dec(x_5);
x_13 = lean_int_add(x_12, x_6);
lean_dec(x_6);
lean_dec(x_12);
x_14 = lean_int_mul(x_9, x_11);
lean_dec(x_9);
x_15 = lean_int_add(x_14, x_10);
lean_dec(x_14);
x_16 = lean_int_add(x_13, x_15);
lean_dec(x_15);
lean_dec(x_13);
x_17 = l_Std_Time_Duration_ofNanoseconds(x_16);
lean_dec(x_16);
return x_17;
}
block_21:
{
lean_object* x_20; 
x_20 = lean_ctor_get(x_19, 1);
lean_inc_ref(x_20);
lean_dec_ref(x_19);
x_4 = x_20;
goto block_18;
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_toTimestampWithZone(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_21; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_3 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_1);
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = lean_unsigned_to_nat(0u);
x_24 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0;
lean_inc(x_4);
x_25 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed), 2, 1);
lean_closure_set(x_25, 0, x_4);
x_26 = l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_box(0), x_25, x_24, x_5);
if (lean_obj_tag(x_26) == 1)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
lean_dec_ref(x_26);
x_28 = lean_array_fget(x_24, x_27);
x_29 = lean_ctor_get(x_28, 0);
x_30 = lean_unsigned_to_nat(1u);
x_31 = lean_nat_sub(x_27, x_30);
lean_dec(x_27);
x_32 = lean_array_fget(x_24, x_31);
lean_dec(x_31);
x_33 = lean_ctor_get(x_32, 1);
x_34 = lean_ctor_get(x_33, 0);
x_35 = lean_nat_abs(x_34);
x_36 = l_instNatCastInt___lam__0(x_35);
x_37 = lean_int_sub(x_29, x_36);
lean_dec(x_36);
x_38 = lean_int_dec_lt(x_4, x_37);
lean_dec(x_37);
lean_dec(x_4);
if (x_38 == 0)
{
lean_dec(x_32);
x_21 = x_28;
goto block_23;
}
else
{
lean_dec(x_28);
x_21 = x_32;
goto block_23;
}
}
else
{
lean_object* x_39; 
lean_dec(x_26);
lean_dec(x_4);
x_39 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1;
if (lean_obj_tag(x_39) == 0)
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; 
x_40 = lean_ctor_get(x_2, 0);
x_41 = lean_ctor_get(x_2, 1);
x_42 = lean_ctor_get(x_2, 2);
x_43 = lean_ctor_get_uint8(x_2, sizeof(void*)*3);
x_44 = 0;
x_45 = 1;
lean_inc_ref(x_41);
lean_inc_ref(x_42);
lean_inc(x_40);
x_46 = lean_alloc_ctor(0, 3, 3);
lean_ctor_set(x_46, 0, x_40);
lean_ctor_set(x_46, 1, x_42);
lean_ctor_set(x_46, 2, x_41);
lean_ctor_set_uint8(x_46, sizeof(void*)*3, x_43);
lean_ctor_set_uint8(x_46, sizeof(void*)*3 + 1, x_44);
lean_ctor_set_uint8(x_46, sizeof(void*)*3 + 2, x_45);
x_6 = x_46;
goto block_20;
}
else
{
lean_object* x_47; 
x_47 = lean_ctor_get(x_39, 0);
lean_inc(x_47);
x_21 = x_47;
goto block_23;
}
}
block_20:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 1);
lean_inc(x_8);
lean_dec_ref(x_3);
x_9 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_6);
lean_dec_ref(x_6);
x_10 = l_Std_Time_TimeZone_toSeconds(x_9);
lean_dec_ref(x_9);
x_11 = lean_int_neg(x_10);
lean_dec(x_10);
x_12 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
x_13 = l_Std_Time_PlainDateTime_now___closed__0;
x_14 = lean_int_mul(x_7, x_13);
lean_dec(x_7);
x_15 = lean_int_add(x_14, x_8);
lean_dec(x_8);
lean_dec(x_14);
x_16 = lean_int_mul(x_11, x_13);
lean_dec(x_11);
x_17 = lean_int_add(x_16, x_12);
lean_dec(x_16);
x_18 = lean_int_add(x_15, x_17);
lean_dec(x_17);
lean_dec(x_15);
x_19 = l_Std_Time_Duration_ofNanoseconds(x_18);
lean_dec(x_18);
return x_19;
}
block_23:
{
lean_object* x_22; 
x_22 = lean_ctor_get(x_21, 1);
lean_inc_ref(x_22);
lean_dec_ref(x_21);
x_6 = x_22;
goto block_20;
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDateTime_toTimestampWithZone___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Time_PlainDateTime_toTimestampWithZone(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_toTimestamp(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_21; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_3 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__0;
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
x_5 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_4);
x_24 = lean_ctor_get(x_5, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_25);
x_26 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_26);
lean_dec_ref(x_2);
lean_inc(x_24);
x_27 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed), 2, 1);
lean_closure_set(x_27, 0, x_24);
x_28 = lean_unsigned_to_nat(0u);
x_29 = l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_box(0), x_27, x_26, x_28);
if (lean_obj_tag(x_29) == 1)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
lean_dec_ref(x_25);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
lean_dec_ref(x_29);
x_31 = lean_array_fget(x_26, x_30);
x_32 = lean_ctor_get(x_31, 0);
x_33 = lean_unsigned_to_nat(1u);
x_34 = lean_nat_sub(x_30, x_33);
lean_dec(x_30);
x_35 = lean_array_fget(x_26, x_34);
lean_dec(x_34);
lean_dec_ref(x_26);
x_36 = lean_ctor_get(x_35, 1);
x_37 = lean_ctor_get(x_36, 0);
x_38 = lean_nat_abs(x_37);
x_39 = l_instNatCastInt___lam__0(x_38);
x_40 = lean_int_sub(x_32, x_39);
lean_dec(x_39);
x_41 = lean_int_dec_lt(x_24, x_40);
lean_dec(x_40);
lean_dec(x_24);
if (x_41 == 0)
{
lean_dec(x_35);
x_21 = x_31;
goto block_23;
}
else
{
lean_dec(x_31);
x_21 = x_35;
goto block_23;
}
}
else
{
lean_object* x_42; 
lean_dec(x_29);
lean_dec(x_24);
x_42 = l_Array_back_x3f___redArg(x_26);
lean_dec_ref(x_26);
if (lean_obj_tag(x_42) == 0)
{
x_6 = x_25;
goto block_20;
}
else
{
lean_object* x_43; 
lean_dec_ref(x_25);
x_43 = lean_ctor_get(x_42, 0);
lean_inc(x_43);
lean_dec_ref(x_42);
x_21 = x_43;
goto block_23;
}
}
block_20:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
lean_dec_ref(x_5);
x_9 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_6);
lean_dec_ref(x_6);
x_10 = l_Std_Time_TimeZone_toSeconds(x_9);
lean_dec_ref(x_9);
x_11 = lean_int_neg(x_10);
lean_dec(x_10);
x_12 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
x_13 = l_Std_Time_PlainDateTime_now___closed__0;
x_14 = lean_int_mul(x_7, x_13);
lean_dec(x_7);
x_15 = lean_int_add(x_14, x_8);
lean_dec(x_8);
lean_dec(x_14);
x_16 = lean_int_mul(x_11, x_13);
lean_dec(x_11);
x_17 = lean_int_add(x_16, x_12);
lean_dec(x_16);
x_18 = lean_int_add(x_15, x_17);
lean_dec(x_17);
lean_dec(x_15);
x_19 = l_Std_Time_Duration_ofNanoseconds(x_18);
lean_dec(x_18);
return x_19;
}
block_23:
{
lean_object* x_22; 
x_22 = lean_ctor_get(x_21, 1);
lean_inc_ref(x_22);
lean_dec_ref(x_21);
x_6 = x_22;
goto block_20;
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_toTimestampWithZone(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_23; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_3 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__0;
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
x_5 = l_Std_Time_PlainDateTime_toTimestampAssumingUTC(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_unsigned_to_nat(0u);
x_26 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0;
lean_inc(x_6);
x_27 = lean_alloc_closure((void*)(l_Std_Time_ZonedDateTime_ofPlainDate___lam__1___boxed), 2, 1);
lean_closure_set(x_27, 0, x_6);
x_28 = l___private_Init_Data_Array_Basic_0__Array_findFinIdx_x3f_loop(lean_box(0), x_27, x_26, x_7);
if (lean_obj_tag(x_28) == 1)
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_29 = lean_ctor_get(x_28, 0);
lean_inc(x_29);
lean_dec_ref(x_28);
x_30 = lean_array_fget(x_26, x_29);
x_31 = lean_ctor_get(x_30, 0);
x_32 = lean_unsigned_to_nat(1u);
x_33 = lean_nat_sub(x_29, x_32);
lean_dec(x_29);
x_34 = lean_array_fget(x_26, x_33);
lean_dec(x_33);
x_35 = lean_ctor_get(x_34, 1);
x_36 = lean_ctor_get(x_35, 0);
x_37 = lean_nat_abs(x_36);
x_38 = l_instNatCastInt___lam__0(x_37);
x_39 = lean_int_sub(x_31, x_38);
lean_dec(x_38);
x_40 = lean_int_dec_lt(x_6, x_39);
lean_dec(x_39);
lean_dec(x_6);
if (x_40 == 0)
{
lean_dec(x_34);
x_23 = x_30;
goto block_25;
}
else
{
lean_dec(x_30);
x_23 = x_34;
goto block_25;
}
}
else
{
lean_object* x_41; 
lean_dec(x_28);
lean_dec(x_6);
x_41 = l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1;
if (lean_obj_tag(x_41) == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; 
x_42 = lean_ctor_get(x_2, 0);
x_43 = lean_ctor_get(x_2, 1);
x_44 = lean_ctor_get(x_2, 2);
x_45 = lean_ctor_get_uint8(x_2, sizeof(void*)*3);
x_46 = 0;
x_47 = 1;
lean_inc_ref(x_43);
lean_inc_ref(x_44);
lean_inc(x_42);
x_48 = lean_alloc_ctor(0, 3, 3);
lean_ctor_set(x_48, 0, x_42);
lean_ctor_set(x_48, 1, x_44);
lean_ctor_set(x_48, 2, x_43);
lean_ctor_set_uint8(x_48, sizeof(void*)*3, x_45);
lean_ctor_set_uint8(x_48, sizeof(void*)*3 + 1, x_46);
lean_ctor_set_uint8(x_48, sizeof(void*)*3 + 2, x_47);
x_8 = x_48;
goto block_22;
}
else
{
lean_object* x_49; 
x_49 = lean_ctor_get(x_41, 0);
lean_inc(x_49);
x_23 = x_49;
goto block_25;
}
}
block_22:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_9 = lean_ctor_get(x_5, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
lean_dec_ref(x_5);
x_11 = l_Std_Time_TimeZone_LocalTimeType_getTimeZone(x_8);
lean_dec_ref(x_8);
x_12 = l_Std_Time_TimeZone_toSeconds(x_11);
lean_dec_ref(x_11);
x_13 = lean_int_neg(x_12);
lean_dec(x_12);
x_14 = l_Std_Time_ZonedDateTime_ofPlainDate___closed__1;
x_15 = l_Std_Time_PlainDateTime_now___closed__0;
x_16 = lean_int_mul(x_9, x_15);
lean_dec(x_9);
x_17 = lean_int_add(x_16, x_10);
lean_dec(x_10);
lean_dec(x_16);
x_18 = lean_int_mul(x_13, x_15);
lean_dec(x_13);
x_19 = lean_int_add(x_18, x_14);
lean_dec(x_18);
x_20 = lean_int_add(x_17, x_19);
lean_dec(x_19);
lean_dec(x_17);
x_21 = l_Std_Time_Duration_ofNanoseconds(x_20);
lean_dec(x_20);
return x_21;
}
block_25:
{
lean_object* x_24; 
x_24 = lean_ctor_get(x_23, 1);
lean_inc_ref(x_24);
lean_dec_ref(x_23);
x_8 = x_24;
goto block_22;
}
}
}
LEAN_EXPORT lean_object* l_Std_Time_PlainDate_toTimestampWithZone___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Time_PlainDate_toTimestampWithZone(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
lean_object* initialize_Std_Time_Zoned_DateTime(uint8_t builtin);
lean_object* initialize_Std_Time_Zoned_ZoneRules(uint8_t builtin);
lean_object* initialize_Std_Time_Zoned_ZonedDateTime(uint8_t builtin);
lean_object* initialize_Std_Time_Zoned_Database(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Std_Time_Zoned(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Std_Time_Zoned_DateTime(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Std_Time_Zoned_ZoneRules(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Std_Time_Zoned_ZonedDateTime(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Std_Time_Zoned_Database(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Std_Time_PlainDateTime_now___closed__0 = _init_l_Std_Time_PlainDateTime_now___closed__0();
lean_mark_persistent(l_Std_Time_PlainDateTime_now___closed__0);
l_Std_Time_DateTime_ofPlainDate___closed__0 = _init_l_Std_Time_DateTime_ofPlainDate___closed__0();
lean_mark_persistent(l_Std_Time_DateTime_ofPlainDate___closed__0);
l_Std_Time_DateTime_ofPlainDate___closed__1 = _init_l_Std_Time_DateTime_ofPlainDate___closed__1();
lean_mark_persistent(l_Std_Time_DateTime_ofPlainDate___closed__1);
l_Std_Time_ZonedDateTime_ofPlainDate___closed__0 = _init_l_Std_Time_ZonedDateTime_ofPlainDate___closed__0();
lean_mark_persistent(l_Std_Time_ZonedDateTime_ofPlainDate___closed__0);
l_Std_Time_ZonedDateTime_ofPlainDate___closed__1 = _init_l_Std_Time_ZonedDateTime_ofPlainDate___closed__1();
lean_mark_persistent(l_Std_Time_ZonedDateTime_ofPlainDate___closed__1);
l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0 = _init_l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0();
lean_mark_persistent(l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__0);
l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1 = _init_l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1();
lean_mark_persistent(l_Std_Time_ZonedDateTime_ofPlainDateWithZone___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
